import request from '@/utils/request'

export function login (data: any) {
  return request({
    url: '/user/login',
    method: 'post',
    data
  })
}

export function getInfo () {
  return request({
    url: '/user/info',
    method: 'get'
  })
}

export function logout () {
  return request({
    url: '/user/logout',
    method: 'get'
  })
}

// 用于菜单显示，权限控制
export function getMenuPermission () {
  return request({
    url: '/user/menu/list',
    method: 'get'
  })
}
